git连接远程仓库拉去代码

您所在的位置:网站首页 阿里云 git慢 git连接远程仓库拉去代码

git连接远程仓库拉去代码

2024-07-13 04:25| 来源: 网络整理| 查看: 265

前置设置: 1、配置用户名和邮箱:

git config --global user.name "xxx" git config --global user.email [email protected]

1、git下生成密钥:ssh-keygen -t ed25519 -C “” 生成公钥和密钥 查看并复制公钥 查看并复制公钥

2、将密钥给阿里云中ssh。 阿里云设置

3、在本地代码置放文件夹下打开git,初始化一个仓库:git init 4、连接远程仓库:git remote add origin [email protected] 5、获取master的数据(即分支):git fetch 6、切换到目标分支:git checkout 分支名 7、克隆项目代码:git clone [email protected] 操作步骤



【本文地址】


今日新闻


推荐新闻


CopyRight 2018-2019 办公设备维修网 版权所有 豫ICP备15022753号-3